package com.chinasofti.SSM.service.role;


import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.chinasofti.SSM.dao.role.RoleMapper;
import com.chinasofti.SSM.pojo.Role;


@Service("roleService")
public class RoleServiceImpl implements RoleService{
	@Resource
	private RoleMapper roleMapper;
	
	public void setRoleMapper(RoleMapper roleMapper) {
		this.roleMapper = roleMapper;
	}


	@Override
	public List<Role> getRoleList() {
		// TODO Auto-generated method stub
		List<Role> roleList = null;
		try {
			roleList = roleMapper.getRoleList();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}finally{
			
		}
		return roleList;
	}
	
}
